home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / dev / lang / SmallEiffel.lha / SmallEiffel / man / Eiffel.FAQ < prev    next >
Text File  |  1998-12-22  |  53KB  |  1,350 lines

  1. Archive-name: eiffel-faq
  2. Posting-Frequency: approximately monthly
  3. Last-modified: 09 October 1998
  4.  
  5.  EIFFEL: FREQUENTLY ASKED QUESTIONS
  6.  ----------------------------------
  7.  
  8. This question-and-answer list is posted monthly to the Usenet
  9. newsgroups comp.lang.eiffel, comp.answers and news.answers.
  10.  
  11. Please send corrections, additions and comments to Franck Arnaud
  12. (franck_arnaud@stratus.com).
  13.  
  14. This information is abstracted and condensed from the posts of many
  15. contributors to comp.lang.eiffel, supplemented by information from
  16. vendors. No guarantees are made regarding its accuracy.
  17.  
  18. This compilation is by Franck Arnaud. Distribution is unrestricted.
  19. It builds on the work of the previous maintainers: Rock Howard,
  20. Roger Browne, Conrad Taylor in chronological order.
  21.  
  22. You can receive the latest copy by anonymous file transfer from:
  23.  
  24.    ftp://ftp.cm.cf.ac.uk/pub/eiffel/eiffel-faq
  25.    ftp://rtfm.mit.edu/pub/usenet/news.answers/eiffel-faq
  26.  
  27. or by sending an email message to mail-server@rtfm.mit.edu with this
  28. message body:
  29.  
  30.    send /pub/usenet/news.answers/eiffel-faq
  31.  
  32.  --------------------
  33.  
  34. WHAT'S NEW?
  35.  
  36. Changes since the last posting:
  37.  
  38.    QCOM  Visual Eiffel current version is 2.5
  39.    QCOM  TowerEiffel moved to historical section
  40.    QCOM  SmallEiffel -0.80
  41.    QGRP  Rio de la Plata Eiffel Group added
  42.    LPRC  Consensus shift on feature objects
  43.  
  44.  --------------------
  45.  
  46. CONTENTS
  47.  
  48. Frequently Asked Questions:
  49.  
  50.    QEIF  What is Eiffel?
  51.    QORI  Where did Eiffel come from?
  52.    QCOM  What Eiffel compilers are available?
  53.    QFRE  Is Eiffel available for free or as shareware?
  54.    QARC  Is there an archive of the comp.lang.eiffel newsgroup?
  55.    QBOK  What books are available for learning about Eiffel?
  56.    QWEB  Where can I find Eiffel on the World-Wide-Web?
  57.    QEDI  Where can I get an Eiffel editor or emacs-mode?
  58.    QBON  What is BON?
  59.    QSAT  What is Sather? How does it compare to Eiffel?
  60.    QSTD  Are there standards for the Eiffel language?
  61.    QTGV  How fast do Eiffel applications run?
  62.    QGRP  Are there any Eiffel user groups?
  63.    QADR  Where can I get Eiffel products and services?
  64.    QCNF  Are there any conferences for Eiffel users?
  65.    QECC  Why do most Eiffel implementations compile to C?
  66.    QJVM  Where can I get an Eiffel to Java compiler?
  67.  
  68. Language Issues:
  69.  
  70.    LFEA  What features does Eiffel have?
  71.    LCHN  What changes have been made to the Eiffel language definition?
  72.    LLIB  What libraries come with Eiffel?
  73.    LDBC  What's the big deal about preconditions and postconditions?
  74.    LCON  Please explain and discuss covariance vs. contravariance.
  75.    LCAT  Is it true that there are "holes" in the Eiffel type system?
  76.    LTSK  Is there support for concurrency in Eiffel?
  77.    LOVL  Why doesn't Eiffel allow function overloading?
  78.    LPRC  Why are there no procedural types in Eiffel?
  79.    LATR  Why are there no class attributes in Eiffel?
  80.    LPAR  How can I call the parent-class version of a redefined
  81.          routine?
  82.    LEVC  Where can I find a comparison between Eiffel and C++?
  83.    LDES  Are there any destructors in Eiffel?
  84.    LDIS  How do I implement multiple inheritance efficiently?
  85.    LISA  How does the `Iterating several actions' example in ETL work?
  86.  
  87.  --------------------
  88.  
  89. QEIF: What is Eiffel?
  90.  
  91. Eiffel is an advanced object-oriented programming language that
  92. emphasizes the design and construction of high-quality and reusable
  93. software.
  94.  
  95. Eiffel is not a superset or extension of any other language. Eiffel
  96. strongly encourages OO programming and does not allow dangerous
  97. practices from previous generation languages although it does
  98. interface to other languages such as C and C++. Eiffel supports the
  99. concept of "Design by Contract" to improve software correctness.
  100.  
  101. Beyond the language aspect Eiffel may be viewed as a method of
  102. software construction. Eiffel is an excellent vehicle for software
  103. education, including for a first programming course.
  104.  
  105.  --------------------
  106.  
  107. QORI: Where did Eiffel come from?
  108.  
  109. Eiffel was created by Bertrand Meyer and developed by his company,
  110. Interactive Software Engineering (ISE) of Goleta, CA.
  111.  
  112. Dr. Meyer borrowed on his extensive experience with OOP, particularly
  113. with Simula. He also added in important concepts from his academic
  114. work on software verification and computer language definition.
  115.  
  116. Eiffel's design addresses many practical concerns that software
  117. engineers face when creating complex software. Eiffel has evolved
  118. continually since its conception on September 14, 1985 and its first
  119. introduction in 1986.
  120.  
  121. Eiffel is named after Gustave Eiffel, the engineer who designed the
  122. Eiffel Tower.
  123.  
  124.  --------------------
  125.  
  126. QCOM: What Eiffel compilers are available?
  127.  
  128. The following Eiffel compilers are currently available and supported
  129. by their vendors or authors. The list is ordered by date of first
  130. publication.
  131.  
  132. In the case of commercial products, the price is not mentioned because
  133. there can be varying conditions depending on platforms, conditions of
  134. use (personal vs. professional), etc. Please check with the vendors'
  135. web-sites for up to date pricing information. As a rule of thumb,
  136. limited or personal versions of compilers cost from US$ 50 to US$ 200
  137. while a full-blown compiler for a single-user licence and the right to
  138. royalty-free distribution varies from US$ 200 to US$ 1500, on
  139. mainstream platforms.
  140.  
  141. In the list below, the 'target' entry indicates what code is produced
  142. by the compiler. Most -- but not all -- compilers produce C code so a
  143. supported C compiler may be needed.
  144.  
  145. In the 'platform' entry, an indication of supported platforms is given.
  146. "Win32" means Windows 95 and Windows NT on Intel x86. No compiler (but
  147. indirectly Smalleiffel) is available under Windows NT on RISC platforms
  148. to the best of our knowledge. "Unix" means various Unices, check with
  149. vendor for the actual list of platforms. Most vendors supporting Unix
  150. do support Linux on Intel x86.
  151.  
  152. The 'brief description' sections are abstracted from the vendors' web
  153. pages.
  154.  
  155.  
  156.  Vendor: Interactive Software Engineering Inc, USA
  157.  Product: ISE Eiffel (current version: 4.2)
  158.  Licensing conditions: Commercial; free time-limited evaluation version
  159.  Target: C
  160.  Platforms: Win32, Unix
  161.  Web: http://www.eiffel.com/
  162.  
  163.  Brief description:
  164.   The ISE Eiffel environment includes:
  165.   - EiffelBench, a complete graphical development environment with
  166.     unique facilities for fast compilation, power browsing,
  167.     documentation, symbolic debugging and more
  168.   - EiffelBase, which is also available under an open source license,
  169.     is a complete and professional set of classes covering containers,
  170.     collections, I/O, iterators, object persistence, table
  171.     searching etc.
  172.   - Under Windows, the Windows Eiffel Library (WEL), combining the
  173.     power of Eiffel with access to the Windows API.
  174.  
  175.  
  176.  Vendor: Dominique Colnet et al
  177.  Product: SmallEiffel the GNU Eiffel compiler (current version: -0.80)
  178.  Licensing conditions: Freeware (GPL)
  179.  Target: ANSI C / Java Virtual Machine
  180.  Platforms: Any ANSI C machine
  181.  Web: http://www.loria.fr/SmallEiffel/
  182.  
  183.  Brief description:
  184.   SmallEiffel is intended to be a complete, though small and very fast,
  185.   free Eiffel compiler, available for a wide range of platforms.
  186.   It includes an Eiffel to C compiler, an Eiffel to Java bytecode
  187.   compiler, a documentation tool, a pretty printer, etc.
  188.   SmallEiffel uses an innovative strategy involving whole system
  189.   analysis which allows compilation to be often faster than the
  190.   incremental compilation of traditional compilers.
  191.   It was originally designed at the LORIA lab, Nancy, France,
  192.   in 1994-95, and has been used worldwide by many individuals
  193.   and Universities since September 1995.
  194.  
  195.  
  196.  Vendor: Halstenbach ACT GmbH, Germany
  197.  Product: iss-base (current version: 2.0cl1)
  198.  Licensing conditions: Commercial; 90-day free evaluation version
  199.  Target: ANSI C
  200.  Platforms: Win32, Unix
  201.  Web: http://www.halstenbach.com/ or http://www.halstenbach.de/
  202.  
  203.  Brief description:
  204.   iss-base is especially targeted to the creation of complex, mission
  205.   critical applications with a strong focus on software quality.
  206.   As an independent developer of Eiffel technology, Halstenbach has
  207.   created a development environment covering the whole software life
  208.   cycle. Major strenghs of iss-base are robustness, speed of
  209. compilation,
  210.   a sophisticated UIMS with full Windows'95/NT support and corresponding
  211.   GUI builder, reliable ODBC support, portability between Unix and
  212.   Windows, many libraries especically for writing commercial
  213.   applications, e.g., CORBA connectivity, extensive date/time support,
  214.   BCD-arithmetics, support for report generators, etc.
  215.  
  216.   (Note: the compiler and base libraries are based on but not the same
  217.   as ISE Eiffel. Other parts of the product are unrelated with ISE
  218.   products.)
  219.  
  220.  
  221.  Vendor: Object Tools GmbH, Germany
  222.  Product: Visual Eiffel (current version: 2.5)
  223.  Licensing conditions: Commercial; free feature-limited eval. version
  224.  Target: Native Intel x86
  225.  Platforms: Win32 only
  226.  Web: http://www.object-tools.com/ or http://www.eiffel.de/
  227.  
  228.  Brief description:
  229.   Using Visual Eiffel and DM will help you to develop complex Windows
  230.   applications in a very short time. Visual Eiffel gives you
  231.   - an integrated workbench with the Windows look and feel
  232.   - a professional Eiffel compiler producing very efficient native
  233.     code for Intel processors
  234.   - DM - the most rapid RAD tool you have ever seen gives you
  235.     everything to build applications for Windows fast.
  236.   - many useful libraries for the production of commercial Windows
  237.     applications - for ActiveX component integration, for ODBC access,
  238.     for the creation of nice graphical packages and much more.
  239.  
  240.  
  241. Other Eiffel compilers are worth mentioning although they may be
  242. either not supported any more, or an older version, or at an early
  243. stage of development so that their implementation of the language
  244. may be far from complete.
  245.  
  246.  
  247.  - A beta version of Eiffel/S 2.0 (not 1.3) is available from
  248.    Object Tools for PowerPC-based Apple Macintosh. It works
  249.    with the Codewarrior C compiler and IDE. It includes MOTEL,
  250.    a library wrapping the most common Mac toolbox entities and
  251.    providing an event driven application framework.
  252.    http://www.object-tools.com/
  253.  
  254.  - FEC is a native Eiffel compiler for SUN SPARC machines. An early
  255.    beta version (including the full source code) can be downloaded
  256.    from Fridtjof Siebert's page at
  257.   
  258. http://www.informatik.uni-stuttgart.de/ifi/ps/siebert/fridi_eiffel.html
  259.  
  260.  - SIG Eiffel/S, version 1.3: Eiffel/S was the first Eiffel 3
  261.    compiler, and the first Eiffel compiler available on the PC
  262.    platform. Version 1.3, is still available as shareware from
  263.    Object Tools (formerly SIG) but it is a few years old. A
  264.    much improved version has been announced for a while,
  265.    but is not generally available (except for the Mac). Eiffel/S 1.3
  266.    is a command line compiler producing C code, it is available
  267.    for DOS32, Windows 95 and NT and many Unix platforms.
  268.    Object Tools is at http://www.object-tools.com/.
  269.  
  270.  - J-Eiffel is an Eiffel compiler generating JVM bytecode. A very early
  271.    version of the compiler -- including the source code -- is available
  272.    on Pirmin Kalberer's web site at http://www.spin.ch/~kalberer/
  273.  
  274.  - EON Eiffel: An Eiffel to C++ compiler, written in C++,
  275.    not actively maintained.
  276.  
  277.  - TowerEiffel was a commercial compiler with an emphasis on the
  278. performance of
  279.    generated code. It is not actively maintained or sold as Tower
  280. Technology
  281.    has moved on to write a static Java compiler using the same kinds of
  282.    system-wide optimisations found in most Eiffel compilers.
  283.  
  284.  
  285.  --------------------
  286.  
  287. QFRE: Is Eiffel available for free or as shareware?
  288.  
  289. SmallEiffel is a freeware compiler, provided as a highly
  290. portable C package that can compile on most ANSI C platforms.
  291. The full Eiffel source code of the compiler itself (in Eiffel)
  292. is included.
  293.  
  294. A ready-to-run package for Windows, including a freeware C
  295. compiler, is available at http://www.elj.com/elj-win32/ .
  296.  
  297. Many commercial vendors offer free evaluation versions, with
  298. some limitations. Commercial vendors often also have cheap
  299. entry-level versions for popular platforms like Win32 on
  300. Intel-based PCs.
  301.  
  302.  --------------------
  303.  
  304. QARC: Is there an archive of the comp.lang.eiffel newsgroup?
  305.  
  306. Yes, on the WWW at:
  307.   http://www.cm.cf.ac.uk/CLE/
  308. or at the following FTP sites:
  309.   ftp://wuarchive.wustl.edu/usenet/comp.lang.eiffel/
  310.  
  311. The newsgroup is also archived at the usual places on the web
  312. (DejaNews, AltaVista, etc).
  313.  
  314.  --------------------
  315.  
  316. QBOK: What books are available for learning about Eiffel?
  317.  
  318.  
  319. ESSENTIAL READING
  320.  
  321.  Title: Object-Oriented Software Construction, second edition
  322. Author: Bertrand Meyer, ISE Inc.
  323.   ISBN: ISBN 0-13-629155-4 - Prentice Hall 1997
  324.  Short: This book is the comprehensive reference on all aspects of
  325.         object technology, from design principles to O-O techniques,
  326.         Design by Contract, O-O analysis, concurrency, persistence,
  327.         abstract data types and many more. Written by a pioneer in
  328.         the field, contains an in-depth analysis of both
  329.         methodological and technical issues.
  330.  
  331.         While not presented as an 'Eiffel book' (Eiffel is presented
  332.         as the 'notation' used to illustrate the concept) it is
  333.         essential reading for any Eiffelist and it actually includes
  334.         a rather complete description of the 'notation' -- Eiffel.
  335.  
  336.         Comes with a CD-ROM containing: the complete hyperlinked text,
  337.         for easy reference; software to read the text on major industry
  338.         platforms; supplementary material (reusable components,
  339.         mathematical complements); and a complete graphical O-O
  340.         development environment supporting the concepts of the book.
  341.  
  342.  
  343.  Title: Eiffel: The Language
  344. Author: Bertrand Meyer
  345.   ISBN: ISBN 0-13-247925-7 -- Prentice Hall 1992
  346.  Short: This book combines an introduction to Eiffel, the language
  347.         reference, and a good deal of philosophy into its 600 pages.
  348.         This is a rigorous and comprehensive book which some readers
  349.         may find heavy going despite Dr. Meyer's clarity of expression.
  350.         It is the definitive language reference, and essential reading
  351.         for all serious Eiffel users. Get the second or later printing
  352.         (same ISBN), which includes many corrections and changes (there
  353.         is not a second edition, and none is currently underway). This
  354.         book is also available in French (ISBN 2-7296-0525-8).
  355.  
  356.  
  357. OTHER BOOKS
  358.  
  359.  Title: Object Oriented Programming in Eiffel, 2nd edition
  360. Author: Pete Thomas and Ray Weedon -- ISBN: 0-201-33131-4 -- AW 1997
  361.  Short: This book is a very comprehensive Eiffel tutorial and textbook,
  362.         with a solid "Abstract Data Type" approach.
  363.  
  364.  Title: Algorithms and Data Structures
  365. Author: Jeffrey Kingston -- ISBN: 0-201-40374-9 -- AW 1997
  366.  Short: A treatment of the central algorithms and data structures of
  367.         computer science, including complete Eiffel implementations.
  368.  
  369.  Title: An Object-Oriented Introduction to Computer Science Using Eiffel
  370. Author: Richard Wiener -- ISBN: 0-13-838725 -- PH 1997
  371.  Short: None
  372.  
  373.  Title: Object Technology for Scientific Computing Object-Oriented
  374.             Numerical Software in Eiffel and C
  375. Author: Paul Dubois -- ISBN: 0-13-267808-X -- PH 1996
  376.  Short: Accompanying CD with the Free Eiffel for UNIX & Linux
  377.         environments.
  378.  
  379.  Title: Object-Oriented Software Engineering with Eiffel
  380. Author: Jean-Marc Jezequel -- ISBN: 0-201-63381-7 -- AW 1996
  381.  Short: A comprehensive guide to Eiffel. In addition to describing
  382.         Eiffel, the book contains descriptions and comparisons of
  383.         compilers and libraries available on the market.
  384.  
  385.  Title: Object Structures: Building OO Software Components with Eiffel
  386. Author: Jacob Gore -- ISBN: 0-201-63480-5 -- AW 1996
  387.  Short: This is the first "data structures" book for Eiffel, bringing
  388.         to the study of that language the first comprehensive
  389.         treatment of one of the most important topics in any
  390.         programming language.
  391.  
  392.  Title: Eiffel Object-Oriented Programming
  393. Author: John Tyrrell -- ISBN: 0-333-64554-5 -- 1995
  394.  Short: This is an inexpensive and very approachable book.
  395.  
  396.  Title: Software Development Using Eiffel: There can be life other than
  397. C++
  398. Author: Richard Wiener -- ISBN: 0-13-100686-X -- PH 1995
  399.  Short: This is a useful book with a lot of code examples for those
  400.         with a grounding in another OO language.
  401.  
  402.  Title: Object Success
  403. Author: Bertrand Meyer -- ISBN: 0-13-192833-3 -- PH 1995
  404.  Short: This book is a  manager's guide to object orientation, its
  405.         impact on the corporation and its use for re-engineering the
  406.         software process.
  407.  
  408.  Title: Object Oriented Programming in Eiffel
  409. Author: R. Rist and R. Terwilliger -- ISBN: 0-13-205931-2 -- PH 1995
  410.  Short: This is a textbook with an emphasis on design.
  411.  
  412.  Title: Seamless Object-Oriented Software Architecture: Analysis and
  413.             Design of Reliable Systems
  414. Author: Kim Walden & Jean-Marc Nerson -- ISBN: 0-13-031303-3 -- PH 1994
  415.  Short: This book describes the Business Object Notation (BON) Method
  416.         in detail.
  417.  
  418.  Title: Reusable Software: The Base Object-Oriented Component Libraries
  419. Author: Bertrand Meyer -- ISBN: 0-13-245499-8 -- PH 1994
  420.  Short: This book describes principles of library design and the
  421.         taxonomy of fundamental computing structures. Serves as a
  422.         manual for the EiffelBase libraries.
  423.  
  424.  Title: An Object-Oriented Environment: Principles and Application
  425. Author: Bertrand Meyer -- ISBN: 0-13-245507-2 -- PH 1994
  426.  Short: This book describes the ISE EiffelBench environment as well as
  427.         the "Melting Ice" compilation technology and the EiffelBuild
  428.         GUI application builder.
  429.  
  430.  Title: Object-Oriented Applications
  431. Author: Meyer and Nerson editors -- ISBN: 0-13-013798-7 -- PH 1993
  432.  Short: This book includes an introduction to Eiffel technology
  433.         followed by seven in-depth descriptions of large applications
  434.         written in Eiffel.
  435.  
  436.  Title: Eiffel: Objektorientiertes Programmieren in der Praxis
  437. Author: Frieder Monninger -- ISBN: ISBN 3-88229-028-5 -- 1993
  438.  Short: This book is a very down-to-earth Eiffel handbook in German.
  439.  
  440.  Title: Eiffel: An Introduction
  441. Author: Robert Switzer -- ISBN: 0-13-105909-2 -- PH 1993
  442.  Short: This book is a very clear and concise Eiffel primer, with many
  443.         code fragments and two substantial Eiffel applications. Also
  444.         available in French (ISBN 2-225-84-656-1).
  445.  
  446.  Title: Object Oriented Software Construction, first edition
  447. Author: Bertrand Meyer -- ISBN: 0-13-629049-3 -- PH 1988
  448.  Short: An earlier edition of the second edition mentioned above, based
  449.         on a previous version of the language.
  450.         Also available in French, German, Italian, Dutch, etc.
  451.  
  452. Publishers are Addison Wesley (AW) and Prentice Hall (PH).
  453.  
  454.  --------------------
  455.  
  456. QWEB: Where can I find Eiffel on the World-Wide-Web?
  457.  
  458. http://www.cm.cf.ac.uk/CLE/
  459.   An Eiffel home page that is held on the University of Wales College
  460.   of Cardiff's server.
  461.  
  462. http://www.eiffel-forum.org/
  463.   The web site of the Eiffel Forum user group includes a repository
  464.   of free software and information on the current projects.
  465.  
  466. http://www.elj.com/
  467.   Geoff Eldridge's Eiffel pages including GUERL, a preview of Eiffel
  468.   Liberty, an online journal, the online C++ Critique, and other
  469.   useful information.
  470.  
  471. http://www.eiffel.tm/
  472.   A directory of Eiffel resources maintained by Roger Browne of
  473.   Everything Eiffel.
  474.  
  475. The main vendors websites are:
  476.  
  477.  Halstenbach ACT   http://www.halstenbach.de/
  478.  ISE               http://www.eiffel.com/
  479.  Object Tools      http://www.object-tools.com/
  480.  
  481.  --------------------
  482.  
  483. QEDI: Where can I get an Eiffel editor or emacs-mode?
  484.  
  485. Tower Technology Corporation supplies an Eiffel 3 emacs mode that
  486. supports syntax-directed highlighting, auto-indentation and is easily
  487. customized for font use, color and indentation amounts. It comes as
  488. part of the TowerEiffel system, but is also available free for anyone
  489. who requests it. Send email to elisp@atlanta.twr.com to get the latest
  490. version.
  491.  
  492. The WINEDIT shareware programmer's editor offers colour syntax
  493. highlighting, works with Eiffel/S under MS-Windows, and is available
  494. from all main Windows shareware archives.
  495.  
  496. Alan Philips' free Programmers File Editor also works with Eiffel/S
  497. under MS-Windows, has templates but not syntax highlighting, available
  498. from http://www.lancs.ac.uk/people/cpaap/pfe/ .
  499.  
  500. The vim editor, an enhanced version of Unix's vi, includes Reimer
  501. Behrend's Eiffel syntax file as part of the standard distribution,
  502. from http://www.vim.org/ .
  503.  
  504. Franck Arnaud's Eiffel extension to the Windows/WindowsNT programmers
  505. editor Codewright from Premia implements chromacoding of Eiffel code,
  506. has smart indenting and some templates. Available from
  507. http://www.altsoft.demon.co.uk/free/ .
  508.  
  509.  --------------------
  510.  
  511. QBON: What is BON?
  512.  
  513. BON ("Business Object Notation") is a method for high-level analysis
  514. and design, offering a seamless reversible transition to an Eiffel
  515. implementation. The method emphasizes Design by Contract and
  516. systematic development.
  517.  
  518. ISE supports BON with its EiffelCase tool.
  519.  
  520.  --------------------
  521.  
  522. QSAT: What is Sather? How does it compare to Eiffel?
  523.  
  524. Sather is an OO language, originally patterned after Eiffel but now
  525. very different, created at ICSI of Berkeley, CA.
  526.  
  527. Sather does not support Design by Contract, but has some other
  528. interesting features. See the Usenet newsgroup comp.lang.sather
  529. or the Sather home page at http://www.icsi.berkeley.edu/~sather/.
  530.  
  531.  --------------------
  532.  
  533. QSTD: Are there standards for the Eiffel language?
  534.  
  535. The definition of the Eiffel language is in the public domain. This
  536. definition is controlled by NICE, the Non-profit International
  537. Consortium for Eiffel.
  538.  
  539. The Eiffel trademark is owned and controlled by NICE. NICE is using
  540. Bertrand Meyer's book, "Eiffel: The Language" (2nd Printing), as the
  541. initial definition of the language.
  542.  
  543. In 1995 NICE published the first version (called "Vintage 95") of
  544. the Eiffel Library Kernel Standard (ELKS). Those parts of an Eiffel
  545. application that use only the standard classes and features should
  546. run with minimal change on any compiler supporting ELKS-95.
  547.  
  548. The NICE board members for 1998 are Eric Bezault (Chairman), James
  549. McKim (Secretary), Frieder Monninger (Treasurer), Bertrand Meyer
  550. and Christine Mingins.
  551.  
  552. NICE email: nice@atlanta.twr.com
  553.  
  554.  --------------------
  555.  
  556. QTGV: How fast do Eiffel applications run?
  557.  
  558. Early implementations of Eiffel were slow. Recent implementations have
  559. improved dramatically. However, to achieve maximum performance under
  560. any Eiffel implementation, run-time assertion monitoring must be
  561. switched off.
  562.  
  563. It's hard to generalise, but compared to C++, simple
  564. computation-intensive applications will run perhaps 15% slower. Large
  565. applications are often dominated by memory management rather than
  566. computation. The effect of garbage collection is an oft-debated point,
  567. generally the overhead is quite low (10%) and in principle a style of
  568. programming assuming a GC could be more efficient than typical manual
  569. memory management. This also depends on the kind of application, the
  570. implementation of the garbage collector, etc.
  571.  
  572.  --------------------
  573.  
  574. QGRP: Are there any Eiffel user groups?
  575.  
  576. The 'Eiffel Forum' is an organization for individuals interested in
  577. Eiffel. One of the main aims is to put in place a web infrastructure,
  578. similar to the Perl CPAN, to make user or vendor developed resources,
  579. reusable components and supporting information accessible to a wide
  580. and diverse user community.
  581.  
  582. The website is at http://www.eiffel-forum.org/
  583.  
  584. Compiler vendors usually run user groups for their user base, often
  585. in the form of a mailing-list or meetings during conferences. Contact
  586. the individual vendors for more information.
  587.  
  588. South American users of Eiffel can look at the home page of RIPLEG
  589. (Rio de la Plata Eiffel Group) at http://www.angelfire.com/biz2/ripleg/
  590.  
  591.  --------------------
  592.  
  593. QADR: Where can I get Eiffel products and services?
  594.  
  595. These vendors, resellers and suppliers of Eiffel training and
  596. consultancy are listed in alphabetical order:
  597.  
  598.  
  599. AUSTRALIA
  600.  
  601. Class Technology Pty. Ltd.
  602.  POST PO Box 6274, North Sydney NSW 2060, Australia
  603.  TEL +61 2 9922 7222           FAX +61 2 9922 7703
  604.  EMAIL eiffel@class.com.au     WEB http://www.class.com.au/
  605.  
  606.  
  607. EUROPEAN UNION
  608.  
  609. Advanced Media Technology Ltd.
  610.  POST Box 16, Hatolantie 140, SF-34 301 Kuru, Finland
  611.  TEL +358 400 620 236          FAX +358 3 4737 117
  612.  EMAIL jukka.haukijarvi@eiffel.fi
  613.  WEB http://www.eiffel.fi/
  614.  
  615. Cap Gemini France, ITMI APTOR, Eiffel Group
  616.  POST 86-90 rue Thiers, F-92513 Boulogne-Billancourt Cedex, France
  617.  TEL +33 1 4910 5300           FAX +33 1 4910 5102
  618.  EMAIL eiffel@capgemini.fr
  619.  
  620. Eiffel Software Iberica
  621.  POST Isabel II, 4, 1D; 20011 San Sebastian, Spain
  622.  TEL/FAX +34 943 472108
  623.  EMAIL jipferur@si.ehu.es
  624.  
  625. Eiffel Ireland
  626.  POST 45 Hazelwood, Shankill, Co Dublin, Ireland
  627.  TEL +353 1 282 3487
  628.  EMAIL sparker@eiffel.ie       WEB http://www.eiffel.ie/Eiffel/
  629.  
  630. Enea Data
  631.  POST Box 232, Nytorpsvagen 5, S-183 23 Taby, Sweden
  632.  TEL +46 8 638 5000            FAX +46 8 638 50 50
  633.  EMAIL eiffel@enea.se          WEB http://www.enea.se/
  634.  
  635. EtnoTeam
  636.  POST Via Adelaide Bono Cairoli 34, I-20127 Milano, Italy
  637.  TEL +39 2 261621              FAX +39 2 26110755
  638.  EMAIL sales@etnomi.it         WEB http://www.etnomi.it/
  639.  
  640. Everything Eiffel
  641.  POST 6 Bambers Walk, Wesham PR4 3DG, England
  642.  TEL & FAX +44 1772 687525     WEB http://www.eiffel.demon.co.uk/
  643.  EMAIL roger@eiffel.demon.co.uk
  644.  
  645. Halstenbach ACT GmbH
  646.  POST Breidenbrucher Strasse 2, D-51674 Wiehl, Germany
  647.  TEL + 49 2261 9902 0          FAX +49 2261 9902 99
  648.  EMAIL info@halstenbach.de     WEB http://www.halstenbach.de/
  649.  
  650. Langmack & Partner, Feinarbeit
  651.  POST Gitshinner Strasse 91 - 2. Hof, D-10969 Berlin, Germany
  652.  TEL +49 30 616794 61          FAX +49 30 616794 67
  653.  EMAIL langmack@feinarbeit.de
  654.  
  655. Object Tools GmbH
  656.  POST Nordstr. 5, D-35619 Braunfels, Germany
  657.  TEL +49 6472 911030           FAX +49 6472 911031
  658.  EMAIL eiffel@eiffel.de        WEB http://www.eiffel.de/
  659.  
  660. Jan Willamowius
  661.  POST Rueckertstr. 27, D-22089 Hamburg, Germany
  662.  TEL +49 40-20981888
  663.  EMAIL jan@janhh.shnet.org
  664.  
  665.  
  666.  
  667. JAPAN
  668.  
  669. Information and Math Science Lab Inc.
  670.  POST 2-43-1, Ikebukuro, Toshima-ku, Tokyo 171
  671.  TEL +81 3 3590 5211           FAX +81 3 3590 5353
  672.  EMAIL fushimi@imslab.co.jp    WEB http://www.imslab.co.jp/
  673.  
  674.  
  675. NEW ZEALAND
  676.  
  677. Objective Methods Ltd
  678.  POST PO Box 17356 (77 Chamberlain Rd)
  679.        Karori, Wellington, New Zealand
  680.  TEL +64 4 476 9499            FAX +64 4 476 9237
  681.  EMAIL dkenny@actrix.gen.nz
  682.  
  683.  
  684. SWITZERLAND
  685.  
  686. Abstraction
  687.  POST Faubourg de l'Hopital, CH-2000 Neuchatel, Switzerland
  688.  TEL +41 32 7250493            FAX +41 32 7259857
  689.  EMAIL abstraction@access.ch
  690.  
  691.  
  692. UNITED STATES OF AMERICA
  693.  
  694. Halstenbach ACT, Inc.
  695.  POST 827 State Street, Santa Barbara, CA 93101, USA
  696.  TEL +1 805 568 0023           FAX +1 805 884 0806
  697.  EMAIL info@halstenbach.de     WEB http://www.halstenbach.de/
  698.  
  699. Interactive Software Engineering, Inc
  700.  POST ISE Building, 2nd floor, 270 Storke Road, Goleta, CA 93117, USA
  701.  TEL +1 805 685 1006           FAX +1 805 685 6869
  702.  EMAIL info@eiffel.com         WEB http://www.eiffel.com/
  703.  
  704. Object Tools, Inc.
  705.  POST 13267 Summit Sq. Center, Route 413 & Doublewoods Rd,
  706.       Langhorne, PA 19047, USA
  707.  TEL/FAX +1 215 504 0854
  708.  EMAIL info@object-tools.com   WEB http://www.object-tools.com/
  709.  
  710. Tower Technology Corporation
  711.  POST 1501 Koenig Lane, Austin, TX 78756, USA
  712.  TEL +1 512 452 9455           FAX +1 512 452 1721
  713.  EMAIL tower@twr.com           WEB ttp://www.twr.com/
  714.  
  715.  
  716.  --------------------
  717.  
  718. QCNF: Are there any conferences for Eiffel users?
  719.  
  720. The conferences listed here are not just for Eiffel. Eiffel shares the
  721. spotlight with other OO languages including C++ and Smalltalk.
  722.  
  723. TOOLS is an international conference devoted to the applications of
  724. OO technology. Other events, such as user group or NICE meetings
  725. are often held in conjunction with TOOLS. http://www.tools.com/
  726.  
  727. The ACM SIGPLAN Conference On Object-Oriented Programming Systems,
  728. Languages and Applications (OOPSLA) is probably the largest technical
  729. conference about OO Technology. OOPSLA home page is at
  730. http://www.acm.org/sigplan/oopsla/
  731.  
  732. ECOOP is the annual European Conference for Object-Oriented
  733. Programming. http://www.iam.unibe.ch/ECOOP/
  734.  
  735.  --------------------
  736.  
  737. QECC: Why do most Eiffel implementations compile to C?
  738.  
  739. By using C as a target language, an Eiffel implementor can:
  740.  
  741.  - bring Eiffel to the marketplace faster and at lower cost
  742.  - port their implementation more easily to other platforms
  743.  - take advantage of optimisation provided by the C compiler
  744.  
  745. Much of the technology that makes Eiffel relatively simple to use also
  746. makes it more difficult to implement (an Eiffel-to-C compiler is
  747. perhaps 4 to 5 times more difficult to create than a native Pascal
  748. compiler).
  749.  
  750. Compiling Eiffel to C seems to work well under Unix. C is sometimes
  751. thought of as the native code of Unix.
  752.  
  753. On the other hand, C is not universal on other platforms, and the
  754. Eiffel purchaser may need to buy a C compiler as well, and possibly
  755. replace it if the supported C compilers change with new versions of
  756. the Eiffel compiler.
  757.  
  758. With a native-code compiler, you may get somewhat better throughput
  759. and the potential for smaller executables and slightly better
  760. performance.
  761.  
  762.  --------------------
  763.  
  764. QJVM: Where can I get an Eiffel to Java compiler?
  765.  
  766. Since Java became fashionable, everyone wants their favourite
  767. language to be compiled for the JVM (Java Virtual Machine)'s byte
  768. code. It is tempting to think about providing Eiffel compilation
  769. to this platform with total interoperability between Java and Eiffel
  770. code.
  771.  
  772. Unfortunately, things are not as simple as they look at first sight.
  773. There are fundamental differences between the Java and Eiffel object
  774. models (dynamic vs. static object systems, single vs. multiple
  775. inheritance, design by contract vs. wishful thinking, are among the
  776. problems).
  777.  
  778. While it is of course possible to provide a compiler from Eiffel to
  779. the JVM (which is a Turing machine), it comes necessarily at a cost,
  780. be it performance or interoperability or both. It is unlikely in the
  781. foreseeable future to have an Eiffel to JVM compiler where it is
  782. possible to mix and match freely classes written in Java and Eiffel
  783. classes without having to worry about which language they are
  784. written in.
  785.  
  786. Nevertheless, most compiler vendors are moving towards providing
  787. some support for the JVM, with differing limitations depending on
  788. the vendor and implementation strategy.
  789.  
  790. SmallEiffel is the first compiler available to produce some
  791. usable result on the JVM. ISE and Object Tools have announced
  792. ongoing efforts to support Java. Pirmin Kalberer provides an
  793. early version of an Eiffel to JVM compiler.
  794.  
  795.  --------------------
  796.  
  797. LFEA: What features does Eiffel have?
  798.  
  799. Eiffel is a pure object-oriented language. Its modularity is based on
  800. classes. It stresses reliability, and facilitates design by contract.
  801. It brings design and programming closer together. It encourages the
  802. re-use of software components.
  803.  
  804. Eiffel offers classes, multiple inheritance, polymorphism, static
  805. typing and dynamic binding, genericity (constrained and
  806. unconstrained), a disciplined exception mechanism, systematic use of
  807. assertions to promote programming by contract, and deferred classes
  808. for high-level design and analysis.
  809.  
  810. Eiffel has an elegant design and programming style, and is easy to
  811. learn.
  812.  
  813. An overview is available at
  814. http://www.eiffel.com/doc/manuals/language/intro/
  815.  
  816.  --------------------
  817.  
  818. LCHN: What changes have been made to the Eiffel language definition?
  819.  
  820. Eiffel is still a relatively new language, and there have been a
  821. number of changes to its definition.
  822.  
  823. There were significant changes between the publication of
  824. "Object-Oriented Software Construction", first edition in 1988,
  825. and the release of Eiffel 2.3.
  826.  
  827. More significant changes came with the introduction of Eiffel 3, the
  828. current and only version of the language in use today. These changes
  829. are summarised in Eiffel: The Language.
  830.  
  831. There were some less significant changes between the first
  832. and second printings of "Eiffel: The Language":
  833.  
  834.    - New basic types INTEGER_REF, REAL_REF, CHARACTER_REF and
  835.      BOOLEAN_REF etc have been introduced to provide non-expanded
  836.      basic types.
  837.  
  838.    - Introduction of the POINTER type to enable external references to
  839.      be passed around in Eiffel programs.
  840.  
  841.    - Calls from Eiffel to external routines no longer implicitly pass
  842.      the current object as the first parameter.
  843.  
  844. There are many other (more minor) changes, which Neil Wilson has
  845. summarized in ftp://ftp.cm.cf.ac.uk/pub/eiffel/Docs.
  846.  
  847. Since then the following change has been adopted and widely
  848. implemented:
  849.  
  850.    - The Precursor construct allows the ancestor's version of
  851.      a redefined feature to be conveniently called (see LPAR).
  852.  
  853.  
  854.  --------------------
  855.  
  856. LLIB: What libraries come with Eiffel?
  857.  
  858. All vendors aim to support the Eiffel Library Standard kernel classes.
  859.  
  860. In addition, extensive library classes are supplied with the compilers
  861. including data structures, graphics, lexical analysis and parsing, IO,
  862. persistence, formatting and more.
  863.  
  864. Contact the vendors for further details.
  865.  
  866.  --------------------
  867.  
  868. LDBC: What's the big deal about preconditions and postconditions?
  869.  
  870. The big deal is that it supports programming by contract. For example,
  871. preconditions (require clauses) are simple boolean statements that are
  872. used to check that the input arguments are valid and that the object
  873. is in a reasonable state to do the requested operation. If not, an
  874. exception is generated. Similarly, postconditions (ensure clauses)
  875. make sure that a method has successfully performed its duties, thus
  876. "fulfilling its contract" with the caller. Invariants are boolean
  877. expressions that are checked every time an object method returns back
  878. to a separate object.
  879.  
  880. You can use these ideas in any OO programming language, but usually
  881. must supply your own assertion mechanisms or rely on programmer
  882. discipline. In Eiffel, the ideas are integrated into the whole fabric
  883. of the environment. We find them used by:
  884.  
  885.  - the exception handling mechanism.
  886.    (Tracebacks almost always identify the correct culprit code since
  887.    preconditions almost always denote an error in the calling method,
  888.    while postconditions denote an error in the called method.)
  889.  
  890.  - the automatic compilation system.
  891.    (Assertions can be disabled entirely or selectively by type on a
  892.    per class basis.)
  893.  
  894.  - the Eiffel compiler
  895.    (Invariants, preconditions and postconditions are all inherited in
  896.    a manner that makes logical sense.)
  897.    (Assertion expressions are not allowed to produce side effects so
  898.    they can be omitted without effect.)
  899.  
  900.  - the automatic documentation tools
  901.    (Preconditions and postconditions are important statements about
  902.    what a method does, often effectively describing the "contract"
  903.    between the caller and callee. Invariants can yield information
  904.    about legal states an object can have.)
  905.  
  906. In the future we expect to see formal methods technology work its way
  907. into the assertion capability. This will allow progressively more
  908. powerful constraints to be put into place. In addition, Meyer has
  909. argued in his concurrency model (see LTSK) that assertions play
  910. a central role in concurrent and distributed object-oriented
  911. programming.
  912.  
  913.  --------------------
  914.  
  915. LCON: Please explain and discuss covariance vs. contravariance.
  916.  
  917. Consider the following situation: we have two classes PARENT and
  918. CHILD. CHILD inherits from PARENT, and redefines PARENT's feature
  919. 'foo'.
  920.  
  921.    class PARENT
  922.       feature
  923.          foo (arg: A) is ...
  924.    end
  925.  
  926.    class CHILD
  927.       inherit
  928.          PARENT redefine foo end
  929.       feature
  930.          foo (arg: B) is ...
  931.    end
  932.  
  933. The question is: what restrictions are placed on the type of argument
  934. to 'foo', that is 'A' and 'B'? (If they are the same, there is no
  935. problem.)
  936.  
  937. Here are two possibilities:
  938.  
  939.    (1)  B must be a child of A (the covariant rule - so named because
  940.         in the child class the types of arguments in redefined
  941.         routines are children of types in the parent's routine, so the
  942.         inheritance "varies" for both in the same direction)
  943.  
  944.    (2)  B must be a parent of A (the contravariant rule)
  945.  
  946. Eiffel uses the covariant rule.
  947.  
  948. At first, the contravariant rule seems theoretically appealing. Recall
  949. that polymorphism means that an attribute can hold not only objects of
  950. its declared type, but also of any descendant (child) type. Dynamic
  951. binding means that a feature call on an attribute will trigger the
  952. corresponding feature call for the *actual* type of the object, which
  953. may be a descendant of the declared type of the attribute. With
  954. contravariance, we can assign an object of descendant type to an
  955. attribute, and all feature calls will still work because the
  956. descendant can cope with feature arguments at least as general as
  957. those of the ancestor. In fact, the descendant object is in every way
  958. also a fully-valid instance of the ancestor object: we are using
  959. inheritance to implement subtyping.
  960.  
  961. However, in programming real-world applications we frequently need to
  962. specialize related classes jointly.
  963.  
  964. Here is an example, where PLOT_3D inherits from PLOT, and
  965. DATA_SAMPLE_3D inherits from DATA_SAMPLE.
  966.  
  967.    class PLOT
  968.       feature
  969.          add(arg: DATA_SAMPLE) is ...
  970.  
  971.    class PLOT_3D
  972.       inherit
  973.          PLOT redefine add end
  974.       feature
  975.          add(arg: DATA_SAMPLE_3D) is ...
  976.  
  977. This requires the covariant rule, and works well in Eiffel.
  978.  
  979. It would fail if we were to put a PLOT_3D object into a PLOT attribute
  980. and try to add a DATA_SAMPLE to it. It fails because we have used
  981. inheritance to implement code re-use rather than subtyping, but have
  982. called a feature of the ancestor class on an object of the descendant
  983. class as if the descendant object were a true subtype. It is the
  984. compiler's job to detect and reject this error, to avoid the
  985. possibility of a run-time type error.
  986.  
  987. Here's another example where a real-world situation suggests a
  988. covariant solution. Herbivores eat plants. Cows are herbivores. Grass
  989. is a plant. Cows eat grass but not other plants.
  990.  
  991.    class HERBIVORE                               class PLANT
  992.    feature
  993.       eat(food: PLANT) is ...
  994.       diet: LIST[PLANT]
  995.  
  996.    class COW                                     class GRASS
  997.    inherit                                       inherit
  998.       HERBIVORE                                     PLANT
  999.          redefine eat
  1000.       end
  1001.    feature eat(food: GRASS) is ...
  1002.  
  1003. This does what we want. The compiler must stop us from putting a COW
  1004. object into a HERBIVORE attribute and trying to feed it a PLANT, but
  1005. we shouldn't be trying to do this anyway.
  1006.  
  1007. Also consider the container 'diet'. We are not forced to redefine this
  1008. feature in descendant classes, because with covariant redefinition of
  1009. the argument to 'eat', the feature 'diet' can always contain any
  1010. object that can be eaten (e.g. grass for a cow). (With contravariant
  1011. redefinition of the argument to 'eat', it would be necessary to
  1012. re-open the parent class to make the type of the container 'diet' more
  1013. general).
  1014.  
  1015. To summarise: Real-world problems often lend themselves to covariant
  1016. solutions. Eiffel handles these well. Incorrect programs in the
  1017. presence of covariant argument redefinition can cause run-time type
  1018. errors unless the compiler catches these.
  1019.  
  1020. Sather uses the contravariant rule, but uses separate mechanisms for
  1021. subtyping and code reuse and only allows dynamic binding on true
  1022. subtypes. This seems to make contravariance work well, but it can
  1023. force the Sather programmer to use concrete types when modelling
  1024. covariant problems. Concrete types cannot be further subtyped in
  1025. Sather, so this can reduce the potential for re-use (in Eiffel, any
  1026. type can be further subtyped, but the compiler must check that it is
  1027. used validly).
  1028.  
  1029.  --------------------
  1030.  
  1031. LCAT: Is it true that there are "holes" in the Eiffel type system?
  1032.  
  1033. No. The design of Eiffel makes it possible to catch all type errors at
  1034. compile time, so that an Eiffel program cannot abort with a run time
  1035. type error.
  1036.  
  1037. However, to catch a class of certain more obscure type errors at
  1038. compile time, the compiler must analyse the way that classes interact
  1039. within the entire system, rather than just looking at each class one
  1040. by one.
  1041.  
  1042. The main types of errors that cannot be checked easily are:
  1043.  (a) restriction of exports in a descendant class.
  1044.  (b) covariant redefinition of routines parameters as in question LDBC.
  1045.  (c) covariant signatures in conforming types of a generic class
  1046.      (like 'put' in LIST[ANY] and LIST[STRING])
  1047.  
  1048. There is a proposal underway that, if accepted, will allow compilers
  1049. to incrementally check this class of errors by looking at classes
  1050. and not at the whole system every time.
  1051.  
  1052. Because system-wide compile-time validity checking can be complex,
  1053. no compiler available today implements full static type checking. Some
  1054. insert run-time checks. On the other hand, the cases where system
  1055. level validity problems can occur are not too frequent so this is not
  1056. a major annoyance in practice.
  1057.  
  1058.  --------------------
  1059.  
  1060. LTSK: Is there support for concurrency in Eiffel?
  1061.  
  1062. Eiffel does support concurrency in the latest specification for the
  1063. language as defined by Interactive Software Engineering (ISE). A
  1064. more complete description on concurrency -- the SCOOP (Simple
  1065. Concurrent Object-Oriented Programming) model -- can be found
  1066. in chapter 30 of "Object Oriented Software Construction 2ed" by
  1067. Bertrand Meyer. Papers are also available from ISE web site at
  1068. http://www.eiffel.com/doc/manuals/technology/concurrency/ .
  1069.  
  1070. Some compilers also support various forms of multithreading
  1071. independently of SCOOP.
  1072.  
  1073.  --------------------
  1074.  
  1075. LOVL: Why doesn't Eiffel allow function overloading?
  1076.  
  1077. In Eiffel, no two features of a class may have the same identifier,
  1078. regardless of their respective signatures.  This prevents the use of
  1079. function overloading ("multiple polymorphism"), a common programming
  1080. technique in languages like C++.
  1081.  
  1082. Eiffel is designed to be minimal: it includes exactly the features
  1083. that its designer considered necessary, and nothing else.
  1084.  
  1085. Because Eiffel already supports (single) polymorphism through its
  1086. inheritance system, the only positive thing that function overloading
  1087. buys you is reducing the number of feature names you have to learn.
  1088. This is at the expense of reducing the ability of the compiler to trap
  1089. mistakes (often type errors).
  1090.  
  1091. Readability is also enhanced when overloading is not possible. With
  1092. overloading you would need to consider the type of the arguments as
  1093. well as the type of the target before you can work out which feature
  1094. is called. With multiple inheritance and dynamic binding this is
  1095. awkward for a compiler and error-prone for a human. There is no
  1096. intuitive rule which could be used to disambiguate routine calls where
  1097. there is no "nearest" routine.
  1098.  
  1099. However, in Eiffel it's easy to write one routine with arguments of
  1100. the most general applicable type, then use the assignment attempt
  1101. operator to carry out the appropriate operation according to the
  1102. run-time type of the arguments (thereby explicitly programming the
  1103. disambiguation "rules").
  1104.  
  1105. Having said that, the lack of multiple polymorphism does force us to
  1106. write some common mathematical operations (e.g. matrix math) in an
  1107. awkward way, and forces arithmetic expressions to be treated specially
  1108. (the "arithmetic balancing rule", ETL p385). But no-one has come up
  1109. with a solution which is so simple, elegant and useful that it
  1110. improves the quality of Eiffel as a whole.
  1111.  
  1112.  --------------------
  1113.  
  1114. LPRC: Why are there no procedural types in Eiffel?
  1115.  
  1116. A proposal is currently under consideration by NICE to add routine
  1117. types to the language.
  1118.  
  1119. The reason why these types were not implemented earlier, is that
  1120. the notion of allowing a routine to be passed as an argument to a
  1121. routine is in many people's view incompatible with the OO method.
  1122. The definition of object-orientation implies that every operation
  1123. belongs to an object type, so one does not manipulate routines
  1124. just by themselves.
  1125.  
  1126. Nevertheless, routine types can be useful in some specialist cases,
  1127. like interfaces to other object systems, some forms of reflection,
  1128. etc. The proposed extension is indeed not intended for general use,
  1129. although there is concern that it may become used beyond the
  1130. specialist cases when available.
  1131.  
  1132.  --------------------
  1133.  
  1134. LATR: Why are there no class attributes in Eiffel?
  1135.  
  1136. In Eiffel, the "once" function provides greater functionality in a
  1137. more disciplined way. The body of a "once" function is executed once
  1138. only per system (not per instance of the class), when it is first
  1139. called. Thereafter, the "once" function returns the same Result
  1140. without re-executing its body.
  1141.  
  1142. The "once" function can therefore be used to implement a shared
  1143. attribute of reference type (initialized on its first use).
  1144.  
  1145. A "once" function can be included in a mixin class. The shared
  1146. attribute returned by that once function is then available to all
  1147. instances of classes which inherit from the mixin class.
  1148.  
  1149.  --------------------
  1150.  
  1151. LPAR: How can I call the parent-class version of a redefined routine?
  1152.  
  1153. When an inherited routine is redefined in a child class, is there a
  1154. way for the redefined routine to call the version in the parent class?
  1155.  
  1156. 1) If you are responsible for the design of the parent class, you may
  1157.    anticipate such a need. You may provide multiple versions of the
  1158.    same routine body, with some versions frozen (not redefinable):
  1159.  
  1160.    class PARENT
  1161.    feature foo, frozen parent_foo is
  1162.       do
  1163.          ...
  1164.       end
  1165.    end
  1166.  
  1167.    class CHILD
  1168.    inherit
  1169.       PARENT
  1170.          redefine foo
  1171.       end
  1172.    feature foo is
  1173.       do
  1174.          parent_foo
  1175.          ...
  1176.       end
  1177.    end
  1178.  
  1179. 2) Otherwise, you use repeated inheritance to get two versions of
  1180.    'foo', and redefine one of them:
  1181.  
  1182.    class PARENT
  1183.    feature foo is
  1184.       do
  1185.          ...
  1186.       end
  1187.    end
  1188.  
  1189.    class CHILD
  1190.    inherit
  1191.       PARENT
  1192.          rename foo as parent_foo
  1193.       end
  1194.       PARENT
  1195.          redefine foo
  1196.          select foo  -- (in case of dynamic binding)
  1197.       end
  1198.    feature
  1199.       foo is
  1200.          do
  1201.             parent_foo
  1202.             ...
  1203.          end
  1204.    end
  1205.  
  1206. 3) While usable both these constructs have their limitations and a
  1207.    proposal is under way to replace them with a more direct solution:
  1208.    the new reserved word Precursor that allows to call the parent
  1209.    version of a redefined routine in its body. In the rare cases when
  1210.    a routine has more than one precursor, the call can be qualified to
  1211.    specify which precursor is called.
  1212.  
  1213.    Under this proposal, the example becomes:
  1214.  
  1215.     class CHILD
  1216.     inherit
  1217.        PARENT
  1218.           redefine foo
  1219.        end
  1220.     feature
  1221.        foo is
  1222.           do
  1223.              Precursor -- call previous version
  1224.              ...
  1225.           end
  1226.  
  1227.  --------------------
  1228.  
  1229. LEVC: Where can I find a comparison between Eiffel and other languages?
  1230.  
  1231. In Richard Wiener's book "Software Development Using Eiffel: There can
  1232. be life after C++" (Prentice-Hall, ISBN 0-13-100686-X).
  1233.  
  1234. Ian Joyner's "C++ critique" includes a comparison between C++, Eiffel
  1235. and other languages. It is at the following URL:
  1236. http://www.progsoc.uts.edu.au/~geldridg/cpp/cppcv3.html
  1237.  
  1238. You can also find a comparison of Eiffel, C++, Java, and Smalltalk at
  1239. ISE's Web site,
  1240. http://www.eiffel.com/doc/manuals/technology/oo_comparison/
  1241.  
  1242.  --------------------
  1243.  
  1244. LDES: Are there any destructors in Eiffel?
  1245.  
  1246. Eiffel objects are garbage-collected, so that there is no need for the
  1247. software developer to worry about whether, how and when to "destroy"
  1248. or "free" them in the software text.
  1249.  
  1250. Some implementations offer a "free" procedure for programmers who
  1251. absolutely want to remove an object manually. Such a procedure is "use
  1252. at your own risk" and is not needed in normal Eiffel development.
  1253.  
  1254. Coming back to normal usage, the need may arise to ensure that certain
  1255. operations will automatically take place whenever the garbage
  1256. collector reclaims an object. For example if an Eiffel object
  1257. describing a file becomes unreachable and hence is eventually
  1258. garbage-collected, you may want to ensure that the physical file will
  1259. be closed at that time. Some implementations of Eiffel provide a
  1260. mechanism for that purpose: procedure 'dispose' from the Kernel
  1261. Library class MEMORY.
  1262.  
  1263. Whenever the garbage collector collects an object, it calls 'dispose'
  1264. on that object. The procedure does nothing by default (so that a smart
  1265. GC will of course avoid executing any actual call). But any class may
  1266. inherit from MEMORY and redefine 'dispose' to perform appropriate
  1267. actions, such as closing a file. Such actions are sometimes called
  1268. "finalization". This technique achieves it conveniently.
  1269.  
  1270. Because there is no guarantee as to the order in which the garbage
  1271. collector will reclaim objects that have become unreachable, safe
  1272. redefinitions of 'dispose' should only act on external resources such
  1273. as file descriptors, database elements, window system resources etc,
  1274. not on Eiffel object structures themselves.
  1275.  
  1276.  --------------------
  1277.  
  1278. LDIS: How do I implement multiple inheritance efficiently?
  1279.  
  1280. People with a background in C++ or single-inheritance languages
  1281. often think that multiple inheritance carries a penalty because
  1282. it cannot be implemented using the classic dispatch table scheme
  1283. (where every polymorphic feature has a fixed position in a pointer
  1284. table that descendants can customise without breaking any code
  1285. using the fixed position of an ancestor's polymorphic feature.)
  1286.  
  1287. There are other ways to implement inheritance which allows Eiffel
  1288. not to suffer performance problems because of multiple inheritance.
  1289. Eiffel compilers generally use one of two methods.
  1290.  
  1291. In both cases, we need to assume that every type in the system is
  1292. assigned an integer identifier -- the type ID.
  1293.  
  1294. The first implementation is the 'sparse matrix' model. Every
  1295. polymorphic feature has an associated pointer table with an entry
  1296. for each type, indexed by type ID. This allows all polymorphic
  1297. calls to be executed at the (same) cost of a single pointer
  1298. derefence.
  1299.  
  1300. The immediate drawback of this, is that it generates a rather big
  1301. data table (a matrix of all polymorphic routines per all types in
  1302. a system). Fortunately, there are sparse matrix algorithms allowing
  1303. to compress these tables efficiently by carefully selecting the IDs
  1304. (an evident optimisation is to try to group all descendant next
  1305. to their parent so that only a short section of the type ID space
  1306. need be covered).
  1307.  
  1308. The other method is completely different and uses the equivalent of
  1309. an inspect statement on the type ID, calling the appropriate static
  1310. function for each concrete type. In this case, it is obvious that the
  1311. compiler needs a global knowlegde of the system: for each polymorphic
  1312. routine call, it needs to know all concrete subtypes really used in
  1313. the system, and all redefinitions of the routines.
  1314.  
  1315. At first sight, it could be thought that the inspect statement could
  1316. slow down the system. Actual compilers using this solution have proved
  1317. that they can be as efficient as (or more than) those implemented
  1318. using the first method.
  1319.  
  1320. It should now be clear that, for both methods, it is necessary
  1321. for the compiler to have at compile time -- or at the very least at
  1322. optimisation time -- a view of the complete system. This could appear
  1323. like a serious restriction but it is not much of a concern because
  1324. Eiffel compilers must have this view in the first place in order to
  1325. be able to differenciate between static and polymorphic routines --
  1326. all routines being potentially polymorphic in Eiffel -- and this
  1327. must be done to have compiled systems perform reasonably.
  1328.  
  1329.  --------------------
  1330.  
  1331. LISA: How does the `Iterating several actions' example in ETL work?
  1332.  
  1333. The example code page 176 of Eiffel: The Language, 2nd printing does
  1334. not work with any widely available compiler. It has confused and
  1335. puzzled many newcomers to the language and what it is supposed to
  1336. do is not clearly defined in the language definition.
  1337.  
  1338. What the example should do is as follows. When a feature is replicated
  1339. under multiple inheritance (renamed so that the feature is now known
  1340. under two names) and in the same inheritance clause a routine or
  1341. attribute its source text references is also replicated, the routine
  1342. body of the first feature should be adapted to call the corresponding
  1343. replicated features on each path of the inheritance. The mechanism
  1344. is not intended to scale to more complex cases where the replication
  1345. do not occur in a single inheritance clause.
  1346.  
  1347. The opinions are divided on whether this feature should be discarded
  1348. completely because of the the conceptual complexity and odd
  1349. side-effects or better defined and actually implemented.
  1350.